package socket;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.HashMap;
import java.util.Map;

public class ChatServer {
    public static Map<String, Socket> socketMap = new HashMap<>();

    public static void main(String[] args) {
        int port = 9999;
        try(ServerSocket serverSocket = new ServerSocket(port)){
            System.out.println("聊天服务器已启动");
            while (true){

            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
